$(function(){
	var menuPathNames = ["","/blog", "works", "me"];
	//var menuItemNames = ["主页", "博客", "作品", "我"]; //菜单中的顺序
	var pathname = window.location.pathname;
	var pos = 0;
	for (var i=0; i<menuPathNames.length; i++) {
		if (pathname.indexOf(menuPathNames[i])>0) {
			pos = i;
		}
	}
	$($("#menu li")[pos]).addClass("current_page_item");
});